package com.jumi.microservice.domain.vo;


import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * 用户登录VO类
 *
 * @author Administrator
 */
public class UserLoginVO extends AbstractObject implements Serializable {

    @ApiModelProperty("账号")
    @NotNull(message = "用户账号不能为空")
    private String account;

    @ApiModelProperty("密码或者验证码")
    @NotNull(message = "用户密码不能为空")
    private String pwdOrCode;

    @ApiModelProperty(value = "登录类型 0-密码登录 1-验证码登录", example = "0")
    private Integer loginType;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPwdOrCode() {
        return pwdOrCode;
    }

    public void setPwdOrCode(String pwdOrCode) {
        this.pwdOrCode = pwdOrCode;
    }

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }

    @Override
    public String toString() {
        return "UserLoginVO{" +
                "account='" + account + '\'' +
                ", pwdOrCode='" + pwdOrCode + '\'' +
                ", loginType=" + loginType +
                '}';
    }
}
